package org.lanqiao.login;

import com.baomidou.mybatisplus.core.metadata.IPage;
import org.lanqiao.users.Admin;

import java.util.Map;

public interface IAdminService {

    public Admin queryAdminByNameAndPwd(String loginname,String pass);
    public Admin selectloginname(String loginname);
    public Admin selectid(Integer id);
    public void upuserdata(Admin admin);
    public void addadmin(Admin admin);
    public void deleteuser(String loginname);
    public IPage<Admin> searchPage(Integer pagenum, Integer pagesize);
    public IPage<Admin> searchByCondition(Integer pagenum, Integer pagesize, Map<String,Object> querMap);
    public void changestatus(Admin admin);
}
